<template>
	<view class="msg-tips">
		<NavBar title="消息提醒"/>
		<view class="content">
			<view class="msg-list" v-if="msgList.length">
				<view class="msg-item" v-for="item in msgList" :key="item">
					<view class="time"> 2024-12-18 09:14:12 </view>
					<view class="msg">
						<view class="title"> 审核通知 </view>
						<view class="desc"> 在2024年10月15日张沙河申请提交商家入驻，审核 通过，正式成为商户。 </view>
					</view>
				</view>
			</view>
			<Empty txt="暂时没有消息提醒信息~" v-else/>
		</view>
	</view>
</template>

<script setup>
	import { ref } from 'vue';
	import { onLoad, onReachBottom } from '@dcloudio/uni-app'
	import NavBar from '@/components/NavBar.vue';
	import Empty from '@/components/Empty.vue';
	const msgList = ref(['','','','','',''])
	const total = ref(0)
	const page = ref(1)
	const pageSize = ref(15)
	onReachBottom(() => {
		console.log('onReachBottom');
		if(page.value*pageSize.value>=total.value) return
		console.log('pppppp');
		page.value = page.value + 1
	})
</script>

<style lang="scss" scoped>
	.msg-tips {
		.content {
			padding: 10px 12px;
			.msg-list {
				.msg-item {
					margin-bottom: 20px;
					.time {
						color: #999999;
						font-size: 12px;
						font-weight: 400;
						line-height: 14px;
						text-align: center;
						margin-bottom: 10px;
					}
					.msg {
						padding: 0 12px;
						border-radius: 10px;
						background-color: #fff;
						.title {
							height: 42px;
							color: #333333;
							font-size: 14px;
							font-weight: 500;
							line-height: 42px;
							border-bottom: 1px solid #EEEEEE;
							box-sizing: border-box;
						}
						.desc {
							color: #666666;
							font-size: 14px;
							padding: 10px 0;
							font-weight: 400;
							line-height: 19px;
						}
					}
				}
			}
		}
	}
</style>
